package edu.zcmu.seckill.service;

import edu.zcmu.seckill.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author 唐诗
 * @since 2022-02-22
 */
public interface ProductService extends IService<Product> {

    Map<String,Object> queryAllProduct(Long page);

    Map<String,Object> getProductById(String id);

    void uploadProductCache();


    void updateProductBySale(String id, int i);
}
